<?php
/***************************************************************************
*                                header.php
 *
 *   Begin date           	: 
 *   Copyright            	: 
 *   Email                	: 
 ***************************************************************************/
defined('PHP5_PHP') or die("Application is stopping!!!");
$tpl = sprintf($php5TemplateFile, $language, 'main', 'smp_main.tpl');
$query = "SELECT * FROM #__banner WHERE  publish=1 ORDER BY sorting";
$php5DB_en->setQuery( $query );  
$rows = $php5DB_en->loadObjectList();
$banners = array();
foreach ($rows as $key=>$row)
{
	$banners[$key]['image'] = $php5WebPath  . "/". $row->image;
}
$smarty->assign('banners', $banners);
$smarty->assign('link_category', sefBuild($php5WebPath, "index.php?o=eshop&m=search", 1) );
$smarty->assign('url_search', sefBuild($php5WebPath, 'index.php?o=eshop&m=search', 1));
$smarty->assign('main', $smarty->fetch($tpl));

